package com.xeem.core.utils
{
	import flash.net.*;
	
	public class URLUtil
	{
		public static var OPEN_TYPE:Object = {Self:"_self",Blank:"_blank"};
		
		public static function OpenURL(url:String,openType:String) :void{
			//var url:String = "http://www.xici.net/main.asp?url=/b1214235/";
			var request:URLRequest = new URLRequest(url);
			switch (openType){
				case URLUtil.OPEN_TYPE.Self:
					navigateToURL(request,"_self"); 
					break;
				case URLUtil.OPEN_TYPE.Blank:
					navigateToURL(request,"_blank"); 
					break;
			}			
		}
		
		
	}
}